package com.lx.onbording.vshe.osgistarter.consumer;

import java.util.TimerTask;

import com.lx.onbording.vshe.osgistarter.producer.api.RequestResponseService;

public class ConsoleResponder extends TimerTask {

	private RequestResponseService requestResponseService;
	
	public ConsoleResponder(RequestResponseService requestResponseService) {
		super();
		this.requestResponseService = requestResponseService;
	}

	@Override
	public void run() {
		System.out.println("TRIGGER PRODUCER SERVICE: "
				+ requestResponseService.getResponse("Requeste"));

	}

}
